extends layout

block barre

block content

    h1 = title



    .container
        nav
            ul
              li
                a(href="/map") #{mail}
              li
                a
                  | Level
                  span.badge.red #{lvl}
              li
                a
                  | Power
                  span.badge #{power}
              li
                a
                  | Money
                  span.badge.green #{money}

              li
                a(href='/alliance') Alliance

    p Vos invitations:
    tab.invit

    - if(!alli)
        .allForm
             p Create an Alliance:
                form#createAllForm(action='')
                   input#allName(type='text', name='', placeholder='Alliance name')
                   input(type='submit', value='Envoyer')
    -else
        p.allForm Your Alliance is: #{alli}
        .allForm
            form#ragequitAlli(action='')
               input(type='submit', value='Quitter mon alliance')
               br
            form#invitePF(action='')
               input#PName(type='text', name='', placeholder='Player name')
               input(type='submit', value='Invite player')

    table.player

    script(src='/javascripts/alliance.js')
